<?
$id =$_GET['id'];
$code = $_lang == 'vn' ? 'vn_train_it_adv' : 'vn_train_it_adv';
$parentWhere = "and parent = (select id from tbl_content_category where code='$code')";
$parentRecord = getRecord("tbl_content","1=1 ".$parentWhere);
$cat = killInjection($_REQUEST['cat']);
if ($cat=='') $cat = $parentRecord['parent'];
$per_page =4;
$t=0;
if ($_REQUEST['t']!='') $p=killInjection($_REQUEST['t']);

$sql = "select * from tbl_content where status=0 $parentWhere order by sort,date_added desc limit ".$per_page*$t.",".$per_page;
$result = @mysql_query($sql,$conn);
$num=mysql_num_rows($result);
if($num==0){?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td align="center"><font color="#FF0000" size="2">Thông tin đang cập nhật ...</font></td></tr>
</table>
<? }
else{?>

<? 
while($row=mysql_fetch_assoc($result))
{
?>
	<li <?if ($id==$row['id']) echo " class=\"submenu_act\""?>><a href="./?frame=train&id=<?=$row['id']?>" class="link9"> <?=$row["name"]?></a></li>
             
<? 
}?>

 
<? }?>

